// store.js
import {
	createStore
} from 'vuex';
const store = createStore({
	state: {
		userInfo:{}
	},
	mutations: {
		set_user(state,data){
			state.userInfo = data
		}
	},
	actions: {
		setUser({commit},data) {
			commit('set_user',data)
		}
	},
	getters: {
		getUser(state,getters){
			return state.userInfo
		}
	},

});

export default store;